import request from '@/utils/request'
// 查询所有会议室
export function getRoomAllList(query) {
    return request({
      url: '/manage/oa/room/all',
      method: 'get',
      params: query
    })
  }
  // 新增会议
export function addMeeting(data) {
    return request({
      url: '/manage/oa/meeting',
      method: 'post',
      data
    })
  }
  // 查询会议日程视图
export function getMeetingList(query) {
  return request({
    url: '/manage/oa/meeting/day',
    method: 'get',
    params: query
  })
}
// 查询会议详细信息
export function getMeetingDetail(id) {
  return request({
    url: `/manage/oa/meeting/${id}`,
    method: 'get',
  })
}
// 修改会议
export function modifyMeeting(data) {
  return request({
    url: '/manage/oa/meeting',
    method: 'PUT',
    data
  })
}
// 取消会议
export function deleteMeeting(id) {
  return request({
    url: `/manage/oa/meeting/${id}`,
    method: 'DELETE',
  })
}